package views.menu;

import java.awt.Graphics;

import javax.swing.JPanel;

import views.Screen;

import controllers.Game;

@SuppressWarnings("serial")
public class MenuProxy extends JPanel{
	
	public static Screen frame = new Screen(Game.NAME);

	public MenuProxy() {
		
	}
	
	@Override
	public void paint(Graphics g) {
		this.setOpaque(false);
		super.paint(g);
	}
	
	public void main() {
		
		frame.addAsPanel(this);
		
		frame.getContentPane().remove(this);
		
		MainMenu menu = new MainMenu();
		menu.main();
		
	}

}